package com.stu.rocketmq.bean;

import java.io.Serializable;

public class Message<T> implements Serializable {

    private String id;

    private T data;

    public Message() {

    }

    public Message(String id, T data) {
        this.id = id;
        this.data = data;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id='" + id + '\'' +
                ", data=" + data +
                '}';
    }
}
